package com.design.mapstruct;

import com.design.model.UserInfoRequest;
import com.design.model.UserInfoResponse;
import com.design.dao.entity.UserInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserMapstruct {

    UserMapstruct INSTANCE = Mappers.getMapper(UserMapstruct.class);

    UserInfo toUserInfoEntity(UserInfoRequest userInfoRequest);

    List<UserInfoResponse> toUserResponse(List<UserInfo> infoList);

    UserInfoResponse toUserResponseEntity(UserInfo userInfo);
}
